package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import com.huawei.appmarket.framework.widget.FoldingTextView.b;
import com.huawei.appmarket.framework.widget.FoldingTextView.c;
import o.cgz;
import o.Logger;

public class DetailDescGeneralCardEx extends DetailDescGeneralCard implements c {
    public /* synthetic */ DetailDescGeneralCard ˎ(View view) {
        return ˊ(view);
    }

    public /* synthetic */ cgz ˏ(View view) {
        return ˊ(view);
    }

    public DetailDescGeneralCardEx(Context context) {
        super(context);
    }

    public DetailDescGeneralCardEx ˊ(View view) {
        super.ˎ(view);
        this.ॱॱ.setOnContentChangedListener(this);
        return this;
    }

    protected void ʻ() {
        if (this.ˏॱ.ᶥ()) {
            this.ॱॱ.setMaxLine(this.ˏॱ.ʽ());
            this.ॱॱ.setResize(true);
        } else {
            this.ॱॱ.setResize(false);
        }
        this.ॱॱ.setContent(this.ˏॱ.ॱ());
        if (this.ʼ != null) {
            this.ॱॱ.setForceFolding(true);
        }
        ॱॱ();
    }

    public void onClick(View view) {
        ˎ();
        this.ॱॱ.ˎ();
    }

    public void ˎ(boolean z, b bVar, String str, String str2) {
        if (Logger.ˎ()) {
            Logger.ˏ("DetailDescCardEx", "onContentChanged, hasFoldingContent:" + z + ", contentType:" + bVar);
        }
        if (z) {
            if (this.ʻ.getVisibility() == 8) {
                this.ʻ.setVisibility(0);
            }
            if (bVar == b.All) {
                this.ʻ.setArrowUp(true);
                ᐝ();
                if (this.ʼ != null) {
                    this.ʼ.setVisibility(0);
                    return;
                }
                return;
            }
            this.ʻ.setArrowUp(false);
            if (this.ʼ != null) {
                this.ʼ.setVisibility(8);
            }
        }
    }
}
